package presentation;

import java.io.Serializable;
import java.util.Date;

/**
 * interface UIPost
 * used for presenting data of Post object.
 * allows to reveal only the data for presentation,
 * without changing the Post state.
 */
public interface UIPost extends Serializable
{
	/**
	 * @return id of post
	 */
	public long getId();

	/**
	 * @return writer id which is the id of the user who wrote the message
	 */
	public long getWriterId();

	/**
	 * @return the content of the post
	 */
	public String getMessage();

	/**
	 * @return the date when this post was created
	 */
	public Date getDate();
	
	/**
	 * @return id of parent thread.
	 */
	public long getThreadParentId();
}
